package com.wish.wishhouse_foreclosure.service.feign;

import com.wish.wishhouse_foreclosure.entity.SysUser;
import dto.systemDto.SysUserDto;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Service;

@Service
public class SystemServiceError implements FallbackFactory<SystemService> {


    @Override
    public SystemService create(Throwable cause) {
        cause.printStackTrace();
        return new SystemService() {
            @Override
            public SysUserDto getBusinessIdByUserId(String username) {
                return null;
            }
        };
    }
}
